/**
 * 2017，thor.com，all rights reserved。
 * 
 * Project：		palmmall-core
 * Filename：	PRental.java
 * Created：		2017年5月25日
 * Creator：		wolv
 */
package com.thor.palmmall.dao.rpt.shop;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Index;

import com.thor.commons.jpa.entity.PEntity;

/**
 * @author wolv
 *
 */
@Entity
@Table(name = "PMRental")
@org.hibernate.annotations.Table(appliesTo = "PMRental", indexes = {
    @Index(name = "idx_PMRental_1", columnNames = {
        "storeId" }), })
public class PRental extends PEntity {
  private static final long serialVersionUID = 4483113984560501158L;

  private String shopId;
  private String shop;
  private String floor;
  private BigDecimal rent;
  private BigDecimal paid;
  private Date beginDate;
  private Date endDate;
  private String storeId;
  private String store;

  /**
   * 销售发生店铺ID
   * 
   * @return
   */
  @Column(name = "shopId", nullable = true, length = 38)
  public String getShopId() {
    return shopId;
  }

  public void setShopId(String shopId) {
    this.shopId = shopId;
  }

  /**
   * 销售发生店铺
   * 
   * @return
   */
  @Column(name = "shop", nullable = true, length = 128)
  public String getShop() {
    return shop;
  }

  public void setShop(String shop) {
    this.shop = shop;
  }

  @Column(name = "floor", nullable = true, length = 128)
  public String getFloor() {
    return floor;
  }

  public void setFloor(String floor) {
    this.floor = floor;
  }

  /**
   * 租金
   * 
   * @return
   */
  @Column(name = "rent", nullable = true, precision = 19, scale = 4)
  public BigDecimal getRent() {
    return rent;
  }

  public void setRent(BigDecimal rent) {
    this.rent = rent;
  }

  /**
   * 已付租金
   * 
   * @return
   */
  @Column(name = "paid", nullable = true, precision = 19, scale = 4)
  public BigDecimal getPaid() {
    return paid;
  }

  public void setPaid(BigDecimal paid) {
    this.paid = paid;
  }

  /**
   * 租金起算日
   * 
   * @return
   */
  @Column(name = "beginDate", nullable = true)
  public Date getBeginDate() {
    return beginDate;
  }

  public void setBeginDate(Date beginDate) {
    this.beginDate = beginDate;
  }

  /**
   * 租金截止日
   * 
   * @return
   */
  @Column(name = "endDate", nullable = true)
  public Date getEndDate() {
    return endDate;
  }

  public void setEndDate(Date endDate) {
    this.endDate = endDate;
  }


  @Column(name = "storeId", nullable = true, length = 38)
  public String getStoreId() {
    return storeId;
  }

  public void setStoreId(String storeId) {
    this.storeId = storeId;
  }

  @Column(name = "store", nullable = true, length = 128)
  public String getStore() {
    return store;
  }

  public void setStore(String store) {
    this.store = store;
  }
}
